package com.infore.dataReceiving.core.parse;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import com.infore.dataReceiving.core.chain.Air212InstructionsChain;
import com.infore.dataReceiving.dto.AirInstructionsDto;
import com.infore.dataReceiving.util.Air212InstructionsHandleUtil;
import com.infore.dataReceiving.util.RedisUtil;
import com.infore.dataReceiving.util.ResultEntity;
import io.netty.channel.ChannelHandlerContext;

@Component("air212InstructionsParse")
public class Air212InstructionsParse implements InstructionsParse{

	@Autowired
    private RedisUtil redisUtil;// = new RedisUtil()
	
	@Override
	public <T> ResultEntity parse(T t,ChannelHandlerContext ctx) {
		AirInstructionsDto airInstructionsDto = (AirInstructionsDto)t;
		Air212InstructionsChain chain = Air212InstructionsHandleUtil.getMessageFilterChain();
		chain.doFilter(ctx,airInstructionsDto,chain,redisUtil,null,false);
		return null;
	}

}
